﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace console.demo.senior
{
    /**
     * 类名 AuthorAttribute 是该特性的名称，即 Author 加上 Attribute 后缀;一次或多次使用
     */
    [System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple = true)]
    public class AuthorAttribute : System.Attribute
    {
        public string Name { get; set; }
        public double version { get; set; }
        public AuthorAttribute(string name)
        {
            this.Name = name;
            version = 1.0;
        }
    }
}
